package com.carbon.assets.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carbon.assets.entity.CarbonCreditAssets;
import com.carbon.assets.entity.CarbonQuotaAssets;
import com.carbon.assets.vo.CarbonAssetsQueryVo;
import com.carbon.assets.vo.CarbonAssetsTotalVo;
import com.carbon.assets.vo.SelectorVo;
import com.carbon.common.service.BaseService;
import com.carbon.assets.param.CarbonQuotaAssetsQueryParam;
import com.carbon.assets.vo.CarbonQuotaAssetsQueryVo;
import com.carbon.common.api.Paging;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 碳配额资产 服务类
 * </p>
 *
 * @author Li Jun
 * @since 2022-04-24
 */
public interface CarbonQuotaAssetsService extends BaseService<CarbonQuotaAssets> {



    void updateAmount(Long projectId, BigDecimal tradeQuantity);

    CarbonQuotaAssets getByCarbonProjectId(Long projectId);

    Page<CarbonQuotaAssetsQueryVo> selectBySelector(Page<CarbonQuotaAssets> page, SelectorVo selectorVo);
}
